﻿using AutoMapper;
using B.Z.BasicData.API.Write.Application.ExcusedManage;
using B.Z.BasicData.API.Write.Application.Menu;
using B.Z.BasicData.API.Write.Application.Role;
using B.Z.BasicData.API.Write.Application.User;
using B.Z.BasicData.Domain.Entity.Authorize;
using B.Z.BasicData.Domain.Entity.Excused;

namespace B.Z.BasicData.API.Write
{
    public class MyAutomapper:Profile
    {
        public MyAutomapper() 
        {
            CreateMap<UserAddCommand, T_User>();
            CreateMap<UserUpdateCommand, T_User>();
            CreateMap<UserRemoveCommand, T_User>();
            CreateMap<RoleAddCommand, T_Role>();
            CreateMap<RoleUpdateCommand, T_Role>();
            CreateMap<UserRoleRemoveCommand, T_UserRole>();
            CreateMap<MenuAddCommand, T_Menu>();
            CreateMap<MenuUpdateCommand, T_Menu>();
            CreateMap<ExcuseAddCommand, T_Excused>();
            CreateMap<ExcuseUpdateOrRemoveCommand, T_Excused>();
            CreateMap<ExcuseShenpiCommand, T_Excused>();
        }
    }
}
